package com.twu.solo;

import java.io.PrintStream;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 1:17 PM
 * To change this template use File | Settings | File Templates.
 */
public class Player {
    public String name;
    public int number;
    public String teamName;
    public int age;
    public PrintStream printStream;

    public Player(String name, String teamName, int number, int age, PrintStream printStream) {
        this.name = name;
        this.teamName = teamName;
        this.number = number;
        this.age = age;
        this.printStream = printStream;
    }




    public String getInfo() {
        return "| "+name+"\t"+teamName+"\t"+number+"\t"+age+" ";
    }

    public void printInfo() {
        printStream.println(getInfo());
    }
}
